﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：库存管理
  //创建人：赵国伟
  //生成时间：2012/04/12 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Manage_GoodsStocksManage : BaseManagePage
{
    protected string SelectOptionOfCategory; //产品类别选项；
    protected string SelectOptionOfBrand; //商品品牌选项；
    protected string SelectOptionOfStores;

    protected QueryGoodsStocksAsPage q;
    protected List<GoodsStockInfo> list;
   
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            q = new QueryGoodsStocksAsPage(true);
            SelectOptionOfCategory = CategoriesManage.GetEndNodeCategoriesToSelectOption(false, q.CategoryID.ToString());
            SelectOptionOfBrand = BrandsManage.GetBrandsByCategoryIdToSelectOption(q.CategoryID, true, q.BrandID.ToString());
            SelectOptionOfStores = Shopping.BLL.StoresManage.QueryStoresToSelectOption(false, q.StoreID.ToString());

            StoresManage bllStore = new StoresManage();
            list = bllStore.QueryStocksAsPage(q);

        }
    }
}